package com.ksyzt.ksite2.shared;

/**
 * 组织类型常量信息
 * @author 张建设
 *
 */
public class OrgType {
	final public static int OT_SYS=0;
	final public static int OT_BBS=1;
	final public static int OT_NEWS=2;
	final public static int OT_SCHOOL=3;
	final public static int OT_PRODUCT_CATALOG=4;
	final public static int OT_ORGNIZATION=5;
	final public static int OT_PICTURE=6;
	final public static int OT_VIDEO=7;

	private static String[] ot_names={
		"系统配置",
		"论坛分类信息",
		"新闻分类信息",
		"教学机构信息",
		"产品分类",
		"组织架构",
		"图片目录",
		"视频目录"
		
		
	};
	public static int   getOrgTypeCount()
	{
		return ot_names.length;
	}
	public static String getOrgNameByType(int index)
	{
		if(index>ot_names.length)
		{
			return "非法的组织类型";
		}
		else
		{
			return ot_names[index];
		}
	}
}
